<div  ng-include="'partials/common/crumb/crumb.html'"></div>
<div id="personal" ng-controller="personalCtrl" ng-init="init()" ng-show="isLogin">

				<div class="nav">
					<div class="nav_per accountInfo " ng-class=" {'active':accountInfo}" ng-click="accountchange()">
						{{'ACCOUNT_INFO' | translate}}
					</div>
					<div class="nav_per passwordInfo " ng-class=" {'active':passwordInfo}" ng-click="passwordchange()">
						{{'SECOND_PASSWORD' | translate}}
					</div>
					<div class="nav_per positionInfo " ng-class=" {'active':positionInfo}" ng-click="positionchange()">
						{{'LOCK_POSITION' | translate}}
					</div>
					<div class="nav_exit" ng-click="quitout()">
						{{'QUIT' | translate}}
					</div>
					<div class="clear"></div>
				</div>
				<!---账户信息 start-->
				<div ng-show="accountInfo" class="accountInfo_cont ">
					<div class="baseInfo">
						<div class="_title">
							{{'BASIC_INFO' | translate}}
						</div>
						<div class="baseInfo_content">
							<div class="baseInfo_tx"></div>
							<div class="baseInfo_text">
								<!--<div class="account_text text_row">-->
									<!--<span class="greyFont">账户名 : </span> {{accountinfo.address}}-->
								<!--</div>-->
								<div class="sum_text text_row">
									<span class="greyFont">{{'TOTAL' | translate}} {{'BALANCE' | translate}} : </span>
									<span class="orangeFont"> {{userService.balance  | xasFilter  }}</span>
									<span class="greyFont">XAS</span>
								</div>
								<!--<div class="dallor_text text_row">-->
									<!--<span class="greyFont">美元折算 : </span><span class="orangeFont"> $0.28</span>-->
								<!--</div>-->
								<div class="summary_text text_row">
									<span class="greyFont">{{'ADDRESS' | translate}} : </span> {{userService.address}}
								</div>
								<div class="summary_text text_row">
									<span class="greyFont">{{'SECOND_PASSWORD' | translate}} : </span> {{setStatus()}}
								</div>
								<div class="summary_text text_row">
									<span class="greyFont">{{'POSITIONLOCK_INFO' | translate}} : </span> {{lockStatus}}
								</div>
								<div class="publickey_text text_row">
									<span class="greyFont">{{'PUBLIC_KEY' | translate}} : </span><p>{{userService.publicKey}}</p>
								</div>
								<!-- 二维码行 -->
								<!-- main secret qrcode -->
								<div class="publickey_text text_row">
									<span class="greyFont">{{'QRCODE' | translate}} : <button ng-click="showQrcode()">{{'CLICK_TO_SHOW' | translate}}</button></span>
									<div class="qr_contain" ng-show="qrcode == true">
										<p>{{'QRCODE_CLOSE' | translate}}</p>
										<qr type-number="0" correction-level="'M'" size="250" input-mode="" text="string" image="false" ng-click="Close()"></qr>
									</div>
								</div>
								<div class="publickey_text text_row_last">
									<span class="greyFont">{{'QRCODE_ADDRESS' | translate}} : <button ng-click="showQrcode_address()">{{'CLICK_TO_SHOW' | translate}}</button></span>
									<div class="qr_contain" ng-show="qrcode_address == true">
										<p>{{'QRCODE_CLOSE' | translate}}</p>
										<qr type-number="0" correction-level="'M'" size="250" input-mode="" text="string_address" image="false" ng-click="Close()"></qr>
									</div>
								</div>
								<!-- address qrcode -->
							</div>
							<div class="clear"></div>
						</div>
					</div>

				</div>
				<!-- -账户信息 end -->
				<!-- -支付信息 start -->
				<div ng-show="passwordInfo" class="passwordInfo_cont ">
					<div class="finishSet" ng-show="userService.secondPublicKey||passwordsure">
						<img src="/assets/personal/tip_passwordNo.png" class="finishSet_icon"/>
						<div class="finishSet_text">
							{{'ALREADY_SET_TPI' | translate}}
						</div>
					</div>
					<div class="setPassword" ng-hide="userService.secondPublicKey || passwordsure">
						<div class="_title">
							{{'SET_SECOND_PASSWORD' | translate}}
						</div>
						<div class="psw">
							<form action="">
								<label>{{'PASSWORD' | translate}}</label>
								<input type="password" ng-trim="true" ng-model="secondpassword" placeholder="{{'PASSWORD_RULE_TIP' | translate}}" autocomplete="off">
							</form>
						</div>
						<div class="psw">
							<form action="">
								<label>{{'CONFIRM' | translate}}</label>
								<input type="password" ng-trim="true" ng-model="confirmPassword" placeholder="{{'INPUT_AGAIN' | translate}}" autocomplete="off">
							</form>
						</div>
						<p class="pwd_tip">{{'SUBMIT_SECOND_PASSWORD_TIP' | translate}}</p>
						<div class="pwd_btn">
							<button class="accept_nxt" ng-click="setPassWord()">{{'SUBMIT' | translate}}</button>
						</div>
					</div>

				</div>
				<!--支付信息 end-->
				<!--锁仓信息 start-->
				<div ng-show="positionInfo" class="positionInfo_cont">
					<div class="_title">
							{{'LOCK_POSITION_TITLE' | translate}}
					</div>
					<div class="position_input_set">
						<div class="input_box">
							<form action="">
								<input type="number" class="block_type_in orangeFont" ng-keyup="calTimeLeft()" ng-model="block_number" placeholder="{{'ACCOUNT_TYPE_HINT' | translate}}"><p>{{'ACCOUNT_LOCK_TIP' | translate}}</p>
								<input type="password" class="block_type_in orangeFont" ng-model="secondpassword" placeholder="{{'ACCOUNT_TYPE2_HINT' | translate}}" ng-hide="!userService.secondPublicKey" autocomplete="off">
							</form>
						</div>
						<span>{{timeLeft}}</span>
						<div class="pwd_btn">
							<button class="accept_nxt" ng-click="setPositionLock()">{{'SUBMIT' | translate}}</button>
						</div>
					</div>
				</div>
				<!--锁仓信息 end-->
				
			</div>
